﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel;

namespace eCashDatalayer
{
    public class BringupFilesModel : INotifyPropertyChanged
    {

        public event PropertyChangedEventHandler PropertyChanged;


        private int _FILESID;
        private DateTime _DATEENTERED;
        private DateTime _DATENEEDED;
        private DateTime _Datereturned;
        private int _DAYSAVAILABLE;
        private string _REASONFORBRINGUP;
        private string _NEEDEDBY;
        private string _REFERENCENUMBER;
        private string _ENTEREDBY; 
        /// When the Property is changed from the PL this gets Fired
        /// </summary>
        /// <param name="property"></param>
        private void OnPropertyChanged(String property)
        {


            if (PropertyChanged != null)
            {
                PropertyChanged(this, new PropertyChangedEventArgs(property));
            }
        }


        public int FILESID
        {

            get
            {
                return _FILESID;
            }
            set
            {
                _FILESID = value;

                OnPropertyChanged("FILESID");

            }
        }

            public DateTime DATEENTERED
            {

                get
                {
                    return _DATEENTERED;
                }
                set
                {
                    _DATEENTERED = value;

                    OnPropertyChanged("DATEENTERED");

                }
            }
            public DateTime DATENEEDED
            {

                get
                {
                    return _DATENEEDED;
                }
                set
                {
                    _DATENEEDED = value;

                    OnPropertyChanged("DATENEEDED");

                }
            }
        

            public int DAYSAVAILABLE
            {

                get
                {
                    return _DAYSAVAILABLE;
                }
                set
                {
                    _DAYSAVAILABLE = value;

                    OnPropertyChanged("DAYSAVAILABLE");

                }
            }

            public string REASONFORBRINGUP
            {
                get
                {
                    return _REASONFORBRINGUP;
                }
                set
                {
                    _REASONFORBRINGUP = value;

                    OnPropertyChanged("REASONFORBRINGUP");

                }
            }

            public string NEEDEDBY
            {
                get
                {
                    return _NEEDEDBY;
                }
                set
                {

                    _NEEDEDBY = value;
                    OnPropertyChanged("NEEDEDBY");
                }
            }

            public string REFERENCENUMBER
            {
                get
                {
                    return _REFERENCENUMBER;
                }
                set
                {
                    _REFERENCENUMBER = value;
                    OnPropertyChanged("REFERENCENUMBER");
                }
            }

            public string ENTEREDBY
            {
                get
                {
                    return _ENTEREDBY;
                }
                set
                {
                    _ENTEREDBY = value;

                    OnPropertyChanged("ENTEREDBY");
                }
            }


            public DateTime Datereturned
            {
                get
                {
                    return _Datereturned;
                }
                set
                {
                    _Datereturned = value;

                    OnPropertyChanged("Datereturned");
                }
            } 


        
    }
}